import { Get, Post } from "@/library/utils/request"
import * as types from "@/views/order_manager/order_list/types"
import { ResponseWithCount } from "@/library/common/types"

export const OrderListApiUrl = {
    Select: "/Order/Select",
    Params: "/Order/Params",
}

export const OrderListApi = {
    /**
     * 查询
     */
    Select(params: types.SelectParamsType) {
        return Post<ResponseWithCount<types.DataType[]>>(OrderListApiUrl.Select, params)
    },
    /**
     * 获取参数
     */
    Params() {
        return Get<types.ParamsType>(OrderListApiUrl.Params)
    },

}